import Vue from 'vue'
import Router from 'vue-router'
import showNews from '@/components/showNews'
import addNews from '@/components/addNews'
import updateNews from '@/components/updateNews'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'showNews',
      component: showNews
    },
    {
      path: '/addNews',
      name: 'addNews',
      component: addNews
    },
    {
      path: '/updateNews',
      name: 'updateNews',
      component: updateNews
    }
  ]
})
